
import {} from '@react-native-community/audio-toolkit';
import {} from '@react-native-community/slider';
import {} from '@react-native-community/viewpager';
import {} from 'base64-js';
import {} from 'crypto-js';
import {} from 'i18n-js';
import {} from 'lottie-react-native';
import {} from 'mobx';
import {} from 'mobx-react';
import {} from 'orionos-eve-core-simulator-hook';
import {} from 'pako';
import {} from 'prop-types';
import {} from 'react-dom';
import {} from 'react-native-android-wifi';
import {} from 'react-native-background-job';
import {} from 'react-native-ble-plx';
import {} from 'react-native-camera';
import {} from 'react-native-display';
import {} from 'react-native-drop-shadow';
import {} from 'react-native-encryption-library';
import {} from 'react-native-fast-image';
import {} from 'react-native-fs';
import {} from 'react-native-gesture-handler';
import {} from 'react-native-gridview';
import {} from 'react-native-intent-launcher';
import {} from 'react-native-linear-gradient';
import {} from 'react-native-localize';
import {} from 'react-native-qrcode-svg';
import {} from 'react-native-rsa-native';
import {} from 'react-native-sha256';
import {} from 'react-native-svg';
import {} from 'react-native-video';
import {} from 'react-native-virtual-keyboard';
import {} from 'react-native-webview';
import {} from 'react-native-zip-archive';
import {} from 'react-navigation';
import {} from 'sprintf-js';
import {} from 'tiny-emitter';"use strict";require("react"),require("react-native");var EveCore=_interopRequireWildcard(require("orionos-eve-core")),_resolveAssetSource=require("react-native/Libraries/Image/resolveAssetSource"),_package=require("./package.json");function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(b,c){if(!c&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var d=_getRequireWildcardCache(c);if(d&&d.has(b))return d.get(b);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in b)if("default"!=a&&{}.hasOwnProperty.call(b,a)){var g=f?Object.getOwnPropertyDescriptor(b,a):null;g&&(g.get||g.set)?Object.defineProperty(e,a,g):e[a]=b[a]}return e.default=b,d&&d.set(b,e),e}console.log("Platform index start : "+_package.appid);let pluginInfo=new Map,appInfo=JSON.parse(EveCore.AppManager.getAppJson());//修改图片资源加载路径
//图片存储路径：*/{appId}/drawable-* 目录下
appInfo.plugin&&appInfo.plugin.forEach(a=>{console.log("Platform index add plugin : "+a.appid),pluginInfo.set(a.appid,a.path)}),(0,_resolveAssetSource.setCustomSourceTransformer)(a=>{let b=JSON.parse(JSON.stringify(a.asset)),c=b.httpServerLocation,d=c.substring(1,c.indexOf("/assets"));return c=c.replace("/"+d,""),b.httpServerLocation=c,a.asset=b,a.jsbundleUrl=pluginInfo.has(d)?"file://"+pluginInfo.get(d)+"/":"file://"+appInfo.path+"/",a.defaultAsset()});